<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<body>

<jsp:include page="header.jsp" />
<script>setMenu(1);</script>
<div id="content" class="wrap">
	<div class="list orderList">
			<table>
				<tr class="title">
					<th class="orderId">订单编号</th>
					<th>订单商品</th>
					<th class="userName">收货人</th>
					<th class="price">订单金额</th>
					<th class="createTime">下单时间</th>
					<th class="status">订单状态</th>
				</tr>
				<c:forEach items="${datas}" var="it">
				<tr>
					<td>${it.oid}</td>
					<td class="thumb"><img src="${it.image}" />
						${it.bookname}
					</td>
					<td>${sessionScope.user.username}</td>
					<td>￥${it.total_price}</td>
					<td>${it.createdate}</td>
					<td>
						${it.state==0?"已下单":""}
						${it.state==1?"已付款":""}
						${it.state==2?"已发货":""}
						${it.state==3?"已完成":""}
					</td>
				</tr>
				</c:forEach>
				
			</table>
			<!-- 
			<div class="page-spliter">
				<a href="#">&lt;</a>
				<a href="#">首页</a>
				<span class="current">1</span>
				<a href="#">2</a>
				<a href="#">3</a>
				<a href="#">4</a>
				<span>...</span>
				<a href="#">尾页</a>
				<a href="#">&gt;</a>
			</div> -->
			<div class="button">
			<input class="input-gray" type="button" name="submit" 
			value="查看一个月前的订单" 
			onclick="location.href='item.do?opt=lastMonth';" />
			<input class="input-gray" type="button" 
			name="submit" value="查看一个月前的订单" 
			onclick="location.href='item.do?opt=beforeMonth';"/></div>
	</div>
</div>
<div id="footer" class="wrap">
	北大青鸟网上书城 &copy; 版权所有

</div>
</body>
</html>
